package com.itheima.stock.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

/**
 * 个股交易最新流水
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel(description = "个股交易最新流水")
public class StockRtScreen {
    /**
     * 当前时间，精确到分
     */
    @ApiModelProperty(value = "当前时间，精确到分", position = 1)
    @JsonFormat(pattern = "yyyy-MM-dd-HH:mm")
    private Date curDate;

    /**
     * 交易量
     */
    @ApiModelProperty(value = "交易量", position = 2)
    private BigInteger tradeAmt;

    /**
     * 交易金额
     */
    @ApiModelProperty(value = "交易金额", position = 3)
    private BigDecimal tradeVol;

    /**
     * 交易价格
     */
    @ApiModelProperty(value = "交易价格", position = 4)
    private BigDecimal tradePrice;
}
